﻿using Abp.Auditing;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.ComponentModel.DataAnnotations;

namespace Mt.Site.Core.WorkFlows.Design.Entities
{
    public class WorkFlowForm : FullAuditedEntity<Guid>, IExtendableObject, IPassivable,IMustHaveTenant
    {
        /// <summary>
        /// 60 * 1024; //60KB
        /// </summary>
        public const int MaxHtmlDataLength = 60 * 1024;
        /// <summary>
        /// 60 * 1024; //60KB
        /// </summary>
        public const int MaxExtensionDataLength = 60 * 1024;

        public int TenantId { get; set; }

        /// <summary>
        /// 流程id
        /// </summary>
        public Guid WorkFlowId { get; set; }

        [Audited]
        [StringLength(MaxHtmlDataLength)]
        public string HtmlData { get; set; }

        [Audited]
        [StringLength(MaxExtensionDataLength)]
        public string ExtensionData { get; set; }

        public bool IsActive { get; set; } //后期可改为列表页，方便编辑表单
    }
}
